<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>总部列表</title>
</head>
<body>
<form id="pagerForm" method="post" action="${pageContext.request.contextPath}/stationMonitor/listFPhistory">
    <input type="hidden" name="pageNum" value="1" />  
    <input type="hidden" name="numPerPage" value="${collectionTO.pageSize}" />
    <input type="hidden" name="hqId" value="${searchCriteria.hqId}" />
    <input type="hidden" name="hqName" value="${searchCriteria.hqName}" />
    <input type="hidden" name="stationId" value="${searchCriteria.stationId}" />
    <input type="hidden" name="stationName" value="${searchCriteria.stationName}" />
   
</form>
<div class="pageHeader">
	<form onsubmit="return navTabSearch(this);" action="${pageContext.request.contextPath}/stationMonitor/listFPhistory" method="post">
	<div class="searchBar">
		<ul class="searchContent">
			<li>
				<label>总部编码</label>
				<input style="width:75px" type="text" name="hqId"  value="${searchCriteria.hqId}" />
			</li>
			<li>
				<label>总部名称</label>
				<input style="width:75px" type="text" name="hqName"  value="${searchCriteria.hqName}" />
			</li>
			<li>
				<label>油站编码</label>
				<input style="width:75px" type="text" name="stationId" value="${searchCriteria.stationId}" />
			</li>
			<li>
				<label>油站名称</label>
				<input style="width:75px" type="text" name="stationName" value="${searchCriteria.stationName}" />
			</li>
			
		</ul>
		<div class="subBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">检索</button></div></div></li>
				<!-- <li><a class="button" href="demo_page6.html" target="dialog" mask="true" title="查询框"><span>高级检索</span></a></li> -->
			</ul>
		</div>
	</div>
	</form>
</div>


<div class="pageContent">
	<div class="panelBar">
		<div class="pages">
			<span>显示</span>
			<select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">
	 			<option value="5" <c:if test="${collectionTO.pageSize==5}">selected</c:if>>5</option>
	 			<option value="10" <c:if test="${collectionTO.pageSize==10}">selected</c:if>>10</option>
			</select>
			<span>条，共${totalCount}条</span>
		</div>
		<div class="pagination" targetType="navTab" totalCount="${totalCount}" numPerPage="${collectionTO.pageSize}" pageNumShown="10" currentPage="${collectionTO.pageNo}"></div>
	</div>
	<table class="table" width="100%" layoutH="116">
		<thead>
			<tr>
				<th width="80">油站总部id</th>
				<th width="80">油站总部名</th>
				<th width="80">油站站点id</th>
				<th width="80">油站站点名</th>
				<th width="80">油品id</th>
				<th width="80">油品标准</th>
				<th width="80">油品名</th>
				<th width="80">油罐号</th>
				<th width="80">体积</th>
				<th width="80">空容</th>
				<th width="80">油高</th>
				<th width="80">水高</th>
				<th width="80">温度</th>
				<th width="80">状态</th>
				<th width="90">创建时间</th>

			</tr>
		</thead>
	<tbody>
		<volist id="vo" name="list">
			<c:forEach items="${collectionTO.list}" var="bean" varStatus="status">
				<tr target="sid_user" rel="${bean.stationId}">
					<td>${bean.hqId}</td>
					<td>${bean.hqName}</td>
					<td>${bean.stationId}</td>
					<td>${bean.stationName}</td>
					<td>${bean.prId}</td>
					<td>${bean.prStandard}</td>
					<td>${bean.prName}</td>
					<td>${bean.tankNo}</td>
					<td>${bean.volume}</td>
					<td>${bean.airVolume}</td>
					<td>${bean.oilHeight}</td>
					<td>${bean.waterHeight}</td>
					<td>${bean.temperature}</td>
					<td>${bean.status}</td>
					<td>
						<fmt:formatDate value="${bean.createdTime}" type="date" dateStyle="long" />
					</td>
				</tr>
			</c:forEach>
			</volist>
		</tbody>
	</table>
</div>
</body>
<script type="text/javascript">
function dialogAjaxDone(json){
    DWZ.ajaxDone(json);
    if (json.statusCode == DWZ.statusCode.ok){
        if (json.navTabId){
            navTab.reload(json.forwardUrl, {navTabId: json.navTabId});
        } else if (json.rel) {
            var $pagerForm = $("#pagerForm", navTab.getCurrentPanel());
            var args = $pagerForm.size()>0 ? $pagerForm.serializeArray() : {}
            navTabPageBreak(args, json.rel);
        }
        if ("closeCurrent" == json.callbackType) {
            $.pdialog.closeCurrent();
        }
    }
}
</script>
</html>